@import '../CSS/common.scss';

body {
  * {
    box-sizing: border-box;
  }
  @include slim-scroll();
}
.container {
  @include generalContainer($max-height: 200px);
  padding: 4px;
}
.btn {
  display: inline-block;
  padding: 1rem 0;
  background-color: hsl(200, 100, 92);
  border-radius: 0.25rem;
  box-shadow: 0.1rem 0.1rem 0.3rem 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  user-select: none;
  cursor: pointer;
  transition: all 120ms;
  &:hover {
    background-color: hsl(200, 100, 97);
    box-shadow: 0.1rem 0.1rem 0.3rem 0 rgba(0, 0, 0, 0.2);
  }
  &:active {
    background-color: hsl(200, 100, 87);
    box-shadow: 0 0 0.15rem 0 rgba(0, 0, 0, 0.35);
  }
}
// 定宽
#solid-width {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  > .btn {
    width: var(--width, 120px);
  }
}
// 百分比
#percent {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1%;
  row-gap: 1rem;
  > .btn {
    width: var(--width, 9%);
  }
}
// 格子布局
#grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--width, 120px), 1fr));
  gap: 1rem;
  > .btn {
    display: block;
  }
}
#grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--width, 120px), 1fr));
  gap: 1rem;
  > .btn {
    display: block;
  }
}
